<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.15/lodash.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/dayjs/1.8.26/dayjs.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.25.1/moment.min.js"></script>
<script>
  let x = undefined;
  let moun = moment();
  let mouns = moment([]);
  let mounS = moment({});
  let mounSS = moment(new Date());
  let mounSSS = moment(x).isSame(moment(), '333');
  // console.log(moun);
  // console.log(mouns);
  // console.log(mounS);
  // console.log(mounSS);
  console.log(mounSSS);
  let day = moment("1995-12-25");
  console.log(day);
  let unix = moment.unix(1318781876).format();
  let utc = moment.unix(1318781876).utc().format();
  console.log(unix);
  console.log(utc);
</script>
<script>
  // _.defer(function(stamp) {
  //   console.log(_.now() - stamp);
  // }, _.now());
  /**
  let year = dayjs().year();
  let second = dayjs().second();
  console.log(year);
  console.log(second);
  let format = dayjs().format();
  console.log(format);
  let unix = dayjs().unix();
  console.log(unix);
  let toString = dayjs().toString();
  console.log(toString);
  let valueOf = dayjs().valueOf();
  console.log(valueOf);
  // let toArray = dayjs().toArray();
  // console.log(toArray);
  // let dy = dayjs('2018-06-03').isBefore(dayjs('2018-06-02'));
  let dy = dayjs('2018-06-02').isSame(dayjs('2018-06-02'));
  console.log(dy);
  let dj = dayjs().daysInMonth();
  console.log(dj);
  // 时间差diff year, day, hour
  let timeCha = dayjs('2018-06-08').diff(dayjs('2017-06-01'), 'hour');
  console.log(timeCha);
  let endOf = dayjs().endOf('year');
  console.log(endOf);
  let dd = dayjs('2018-06-03');
  console.log(dd);
  let ds = dayjs().clone();
  console.log(ds);
  */
</script>
</body>
</html>